package Messages;

import java.io.Serializable;

import General.ClientDetails;
/**
 * Start communication message
 * @author Guy & Liel
 *
 */
public class StartConnectionMsg implements Serializable,Msg {
	
	private static final long serialVersionUID = 1L;
	private String userName;
	private String password;
	private String email;
	private String mainFolder;
	/**
	 * Constructor of connection message
	 * @param cd
	 */
	public StartConnectionMsg(ClientDetails cd) {
		userName = cd.getUserName();
		password = cd.getPassword();
		email = cd.getEmail();
		mainFolder = cd.getMainFolder();
	}
	@Override
	/**
	 * get message type
	 */
	public MsgType getType() {
		// TODO Auto-generated method stub
		return MsgType.START_CONNECTION;
	}
	/**
	 * Get user name
	 * @return String
	 */
	public String getUserName() {
		return userName;
	}
	/**
	 * get password
	 * @return String
	 */
	public String getPassword() {
		return password;
	}
	/**
	 * Get email
	 * @return String
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * Get path of main folder
	 * @return String
	 */
	public String getMainFolder() {
		return mainFolder;
	}

}
